Java Database Connectivity
part 3/17 · 28.8 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
| JDBC version | Java version | Release Type | Release date |
|---|---|---|---|
| 1.1 | JDK 1.1 | Main | 1997-02-19. [ 1 ] |
| 3.0 | J2SE 1.4 | Main | 2002-05-09 |
| 4.0 | Java SE 6 | Main | 2006-12-11 |
| 4.1 | Java SE 7 | Maintenance | 2011-10-13 |
| 4.2 | Java SE 8 | Maintenance | 2014-03-04 |
| 4.3 | Java SE 9 | Maintenance | 2017-09-21 |
Functionality
| Oracle Datatype | setXXX() Methods |
|---|---|
| CHAR | setString() |
| VARCHAR2 | setString() |
| NUMBER | setBigDecimal() |
| NUMBER | setBoolean() |
| NUMBER | setByte() |
| NUMBER | setShort() |
| NUMBER | setInt() |
| NUMBER | setLong() |
| NUMBER | setFloat() |
| NUMBER | setDouble() |
| INTEGER | setInt() |
| FLOAT | setDouble() |
| CLOB | setClob() |
| BLOB | setBlob() |
| RAW | setBytes() |
| LONGRAW | setBytes() |
| DATE | setDate() |
| DATE | setTime() |
| DATE | setTimestamp() |
Since JDBC is mostly a collection of interface definitions and specifications, it allows multiple implementations of these interfaces to exist and be used by the same application at runtime. The API provides a mechanism for dynamically loading the correct Java packages and registering them with the JDBC Driver Manager (DriverManager). DriverManager is used as a Connection factory for creating JDBC connections.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────